﻿using System;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;

namespace JNPF.Basics.Models
{
    /// <summary>
    /// 流程引擎
    /// 版 本：V3.0.0
    /// 版 权：引迈信息技术有限公司（https://www.jnpfsoft.com）
    /// 作 者：JNPF开发平台组
    /// 日 期：2018.01.17
    /// </summary>
    [Table("FLOW_ENGINE")]
    public class FlowEngineEntity
    {
        /// <summary>
        /// 自然主键
        /// </summary>
        [Key]
        [Column("F_ID")]
        public string Id { get; set; }
        /// <summary>
        /// 流程编码
        /// </summary>
        [Column("F_ENCODE")]
        public string EnCode { get; set; }
        /// <summary>
        /// 流程名称
        /// </summary>
        [Column("F_FULLNAME")]
        public string FullName { get; set; }
        /// <summary>
        /// 流程类型
        /// </summary>
        [Column("F_TYPE")]
        public int? Type { get; set; }
        /// <summary>
        /// 流程分类
        /// </summary>
        [Column("F_CATEGORY")]
        public string Category { get; set; }
        /// <summary>
        /// 流程表单
        /// </summary>
        [Column("F_FORM")]
        public string Form { get; set; }
        /// <summary>
        /// 可见类型
        /// </summary>
        [Column("F_VISIBLETYPE")]
        public int? VisibleType { get; set; }
        /// <summary>
        /// 图标
        /// </summary>
        [Column("F_ICON")]
        public string Icon { get; set; }
        /// <summary>
        /// 图标背景色
        /// </summary>
        [Column("F_ICONBACKGROUND")]
        public string IconBackground { get; set; }
        /// <summary>
        /// 流程版本
        /// </summary>
        [Column("F_VERSION")]
        public string Version { get; set; }
        /// <summary>
        /// 流程模板
        /// </summary>
        [Column("F_FLOWTEMPLATEJSON")]
        public string FlowTemplateJson { get; set; }
        /// <summary>
        /// 描述
        /// </summary>
        [Column("F_DESCRIPTION")]
        public string Description { get; set; }
        /// <summary>
        /// 排序码
        /// </summary>
        [Column("F_SORTCODE")]
        public long? SortCode { get; set; }
        /// <summary>
        /// 有效标志
        /// </summary>
        [Column("F_ENABLEDMARK")]
        public int? EnabledMark { get; set; }
        /// <summary>
        /// 创建时间
        /// </summary>
        [Column("F_CREATORTIME")]
        public DateTime? CreatorTime { get; set; }
        /// <summary>
        /// 创建用户
        /// </summary>
        [Column("F_CREATORUSERID")]
        public string CreatorUserId { get; set; }
        /// <summary>
        /// 修改时间
        /// </summary>
        [Column("F_LASTMODIFYTIME")]
        public DateTime? LastModifyTime { get; set; }
        /// <summary>
        /// 修改用户
        /// </summary>
        [Column("F_LASTMODIFYUSERID")]
        public string LastModifyUserId { get; set; }
        /// <summary>
        /// 删除标志
        /// </summary>
        [Column("F_DELETEMARK")]
        public int? DeleteMark { get; set; }
        /// <summary>
        /// 删除时间
        /// </summary>
        [Column("F_DELETETIME")]
        public DateTime? DeleteTime { get; set; }
        /// <summary>
        /// 删除用户
        /// </summary>
        [Column("F_DELETEUSERID")]
        public string DeleteUserId { get; set; }
        /// <summary>
        /// 表单模板
        /// </summary>
        [Column("F_FORMTEMPLATEJSON")]
        public string FormTemplateJson { get; set; }
        /// <summary>
        /// 表单分类
        /// </summary>
        [Column("F_FORMTYPE")]
        public int? FormType { get; set; }
        /// <summary>
        /// 表单分类
        /// </summary>
        [Column("F_TABLES")]
        public string Tables { get; set; }
    }
}
